<template>
  <div>
    <all_header :thisTitle="msg"></all_header>
    <Footer_btn></Footer_btn>
  </div>
</template>
<style>

</style>
<script>
  import all_header from '../assembly/BackGoHome.vue'
  import Footer_btn from '../assembly/footer_btn.vue'
  export default{
    data(){
      return {
        msg: 'hello vue',
        workid: '',
      }
    },
    components: {
      all_header,
      Footer_btn
    },
    created: function () {
      this.fetchData()
    },
    methods: {
      fetchData () {
        let ArticleKey = this.$route.params.workid
        if(ArticleKey ==1){
            this.msg = ArticleKey
        }else if(ArticleKey ==2){
          this.msg = ArticleKey
        }else if(ArticleKey ==3){
             this.msg = ArticleKey
        }
      }
    }
  }
</script>
